package com.zengqingfa.dubbo.mall;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.zengqingfa.dubbo.mall.entity.UserAddress;
import com.zengqingfa.dubbo.mall.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

import java.util.List;

/**
 *
 * @fileName: UserApplication
 * @author: zengqf3
 * @date: 2021-4-13 10:34
 * @description:
 */
@SpringBootApplication
@EnableDubbo
@EnableHystrix
public class OrderApplication implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class);
    }

    @Autowired
    OrderService orderService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // List<UserAddress> addresses = orderService.initOrder("111");
        // System.out.println(addresses);
    }
}
